package com.es.hr.areartm;

import java.lang.reflect.Field;

import javax.servlet.http.HttpServletRequest;

import com.es.business.area.AreaBean;
import com.es.business.area.AreaBiz;
import com.es.business.city.CityBean;
import com.es.business.city.CityBiz;
import com.es.business.citys.CitysBean;
import com.es.business.citys.CitysBiz;
import com.es.business.province.ProvinceBean;
import com.es.business.province.ProvinceBiz;
import com.es.hr.emp.EmpInfoBean;
import com.es.util.page.PageBean;
import com.opensymphony.webwork.interceptor.ServletRequestAware;
import com.opensymphony.xwork.ActionSupport;

public class AreaRTMModifyAction extends ActionSupport
implements ServletRequestAware{
	 HttpServletRequest request;

	public void setServletRequest(HttpServletRequest paramHttpServletRequest) {
		// TODO Auto-generated method stub
		this.request = paramHttpServletRequest;
	}
	
	public String execute() throws Exception{
		String result = "";
		AreaRTMBiz areaRTMBiz = new AreaRTMBiz();
		

		String emp_id = this.request.getParameter("emp_id");
		if(emp_id == null) emp_id = "";
				
		String curpage = this.request.getParameter("curpage");
		if(curpage == null || curpage=="") curpage = "1";
		int curpag = Integer.parseInt(curpage);
		
		PageBean res = areaRTMBiz.searchAreaByRTM(emp_id, curpag);
		this.request.setAttribute("pageBean", res);
		this.request.setAttribute("emp_id", emp_id);
		
		result = "success";
		return result;
	} 
}
